package com.dai.bean.tasks;


import com.dai.bean.TaskType;
import org.json.JSONObject;

public class TaskZaoWan extends TaskBase{
    public static final TaskType taskType = TaskType.ZaoWanDaKa;
    public int zaoExecuted = 0; // 早上是否打卡
    public int wanExecuted = 0; // 晚上是否打卡

    public TaskZaoWan(){
    }

    @Override
    public JSONObject toJsonObject(){
        JSONObject obj = new JSONObject();
        obj.put("zaoExecuted",zaoExecuted);
        obj.put("wanExecuted",wanExecuted);
        return obj;
    }

    @Override
    public void  checkReset(){
        zaoExecuted = 0;
        wanExecuted = 0;
    }

    @Override
    public String getTaskTypeName() {
        return taskType.getValue();
    }
}
